﻿ 
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace SHKF.B2C.Erp.BLL.SugarIOC
{
    public static class SugarServiceExtensions
    {
        public static Dictionary<string, List<ConnectionConfig>> configs = new Dictionary<string, List<ConnectionConfig>>();

        /// <summary>
        /// 添加数据库配置信息
        /// </summary>
        /// <param name="server"></param>
        /// <param name="key"></param>
        /// <param name="iocList"></param>
        public static void AddSqlSugar(string key, List<ConnectionConfig> iocList)
        {
            configs.TryAdd(key, iocList);
        }

    }
}
